subscribe To Push Notifications
public abstract void subscribeToPushNotifications(String packageName, String deviceToken, String realm, PushSubscriptionCallback callback)
This method registers application to push notifications. Fail and success calls will be transmitted through the completion block. If the registration is successfull, a deviceID will be returned which can be used to update or remove the push subscription.
Since
4.6.0
Parameters
package Name
application's packageName
device Token
device token generated by the PushKit
realm
realm of the push server
callback
block implementation that will be used to return success or fail